import request from '@/utils/request'

// 查询任务执行记录列表
export function listExecuteRecord(query) {
  return request({
    url: '/execution/ExecuteRecord/list',
    method: 'get',
    params: query
  })
}

// 查询任务执行记录详细
export function getExecuteRecord(id) {
  return request({
    url: '/execution/ExecuteRecord/' + id,
    method: 'get'
  })
}

// 新增任务执行记录
export function addExecuteRecord(data) {
  return request({
    url: '/execution/ExecuteRecord',
    method: 'post',
    data: data
  })
}

// 修改任务执行记录
export function updateExecuteRecord(data) {
  return request({
    url: '/execution/ExecuteRecord',
    method: 'put',
    data: data
  })
}

// 删除任务执行记录
export function delExecuteRecord(id) {
  return request({
    url: '/execution/ExecuteRecord/' + id,
    method: 'delete'
  })
}
